package com.hfzy.ihk.web.customer.support;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.util.concurrent.ConcurrentHashMap;

/**
 * Created by Administrator on 2016/5/27.
 * @author wws
 *
 * 简单数据缓存
 */
public class SampleMemoryCache {

    private final static Logger logger = LoggerFactory.getLogger(SampleMemoryCache.class);

    /**通话中断标志*/
    public static volatile ConcurrentHashMap<String,Boolean> sessionInterruptMap = new ConcurrentHashMap<>(1000);

    /**投诉我们的客户号码，这类号码不允许再呼出*/
    public static volatile ConcurrentHashMap<String, String> badCustomerPhoneMap = new ConcurrentHashMap<>(100);

    public static boolean isBadCustomerPhone(String customerPhone){

        if(badCustomerPhoneMap.containsKey(customerPhone)){
            return true;
        }
        return false;
    }

}
